/** \file board.c
 **
 ** Board Support for SK-FM3-100PMC
 **
 ** History:
 **   - 2011-04-12    1.0  MSc  First version  SK-FM3-100PMC
 *****************************************************************************/

//#include "board.h"
#include "includes.h"

void Board_Init(void)
{
    /* Release the analog input function*/
    //FM3_GPIO->ADE =0x03;
    KEY_Init();
    LED_Init();
    GPIO_Init();
//	mfsn_type[0] = UART;
    Uart_Init(COMM_BT,UART_BAUDRATE(115200));
    PWM_Init();
    //ADC0_Init();

//    Uart_Init(COMM_IF1,UART_BAUDRATE(115200));
//    Uart_Init(COMM_IF2,UART_BAUDRATE(9600));


/*    Spi_Master_Init(COMM_IF3, 100000);
    Spi_Slave_Init(COMM_IF4);
	SpiWriteByte(COMM_IF3,0xA5);
	SpiWriteByte(COMM_IF3,0x96);
	SpiWriteByte(COMM_IF3,0xFF);
	SpiWriteByte(COMM_IF3,0x80);
	SpiWriteByte(COMM_IF3,0x40);
	SpiWriteByte(COMM_IF3,0x20);
	SpiWriteByte(COMM_IF3,0x10);
    SpiWriteBuffer(COMM_IF3, "Test data for SPI tranfer",25);*/

}